﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Commons.ASPNETCore
{
    /// <summary>
    /// code字段
    /// </summary>
    [Description("返回Code")]
    public enum CodeType:int
    {
        /// <summary>
        /// 用户不存在
        /// </summary>
        [Description("用户不存在")]
        NO_USER = 10001,

        /// <summary>
        /// 操作成功
        /// </summary>
        [Description("操作成功")]
        OK = 0,
        /// <summary>
        /// 数据不存在
        /// </summary>
        [Description("数据不存在")]
        NO_DATA = 10002,
        /// <summary>
        /// 数据已存在
        /// </summary>
        [Description("数据已存在")]
        HAVE_DATA = 10003,

        /// <summary>
        /// 密码错误
        /// </summary>
        [Description("密码错误")]
        PASSWORD_ERROR = 10004,

        [Description("文件错误")]
        NO_FILE = 10005,
    }
}
